package com.example.demo02datajdbc.service.impl;

import com.example.demo02datajdbc.dao.UserDao;
import com.example.demo02datajdbc.model.User;
import com.example.demo02datajdbc.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;
    @Override
    public int addUser(User user) {
        return userDao.addUser(user);
    }
}
